﻿<div class="editor-label">
    @if (ViewData["FieldTitle"] != null)
    {
        @Html.Label(ViewData["FieldTitle"].ToString())
    }
    else
    {    
        @Html.LabelFor(model => model)

    }
</div>
<div class="editor-field">
    @if (ViewData.ModelMetadata.ModelType == typeof(DateTime) || ViewData["ForceDate"] != null)
    {
        @Helpers.DateTimeString(Model)
    }
    else if (ViewData.ModelMetadata.ModelType == typeof(Int32))
    {
        if (Model == 0)
        {

        }
        else
        {
        @Model
        }
    }
    else
    {
        @Model
    }
</div>
